export const traces_mock_data = [
  {
    id: 'e521b8960f7a0ccc',
    parentSpanId: '25af5562b193b0f1',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048600347000,
    endTime: 1740048600347046,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: '5dfca3d9e063b464',
    parentSpanId: '5024a200be6aa298',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'ai.streamText.doStream',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [
      {
        attributes: [
          {
            key: 'ai.response.msToFirstChunk',
            value: {
              doubleValue: 831.4975830000039,
            },
          },
        ],
        name: 'ai.stream.firstChunk',
        timeUnixNano: '1740048599411617375',
        droppedAttributesCount: 0,
      },
      {
        attributes: [],
        name: 'ai.stream.finish',
        timeUnixNano: '1740048600344488792',
        droppedAttributesCount: 0,
      },
    ],
    links: [],
    attributes: {
      'operation.name': 'ai.streamText.doStream',
      'ai.operationId': 'ai.streamText.doStream',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxRetries': 2,
      'ai.prompt.format': 'messages',
      'ai.prompt.messages':
        '[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:49:55.839Z"},{"role":"user","content":[{"type":"text","text":"what is the current weather in Lagos?"}]},{"role":"assistant","content":[{"type":"tool-call","toolCallId":"call_2mcoQTp23zgzPbennak0ZSCB","toolName":"weatherTool","args":{"location":"Lagos"}}]},{"role":"tool","content":[{"type":"tool-result","toolCallId":"call_2mcoQTp23zgzPbennak0ZSCB","toolName":"weatherTool","result":{"temperature":32,"feelsLike":37.3,"humidity":64,"windSpeed":12.9,"windGust":25.9,"conditions":"Partly cloudy","location":"Lagos"}}]}]',
      'ai.prompt.tools': {
        values: [
          {
            stringValue:
              '{"type":"function","name":"weatherTool","description":"Get current weather for a location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"City name"}},"required":["location"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}',
          },
        ],
      },
      'ai.prompt.toolChoice': '{"type":"auto"}',
      'gen_ai.system': 'openai.chat',
      'gen_ai.request.model': 'gpt-4o',
      componentName: 'Weather Agent',
      'ai.response.msToFirstChunk': 831.4975830000039,
      'ai.response.msToFinish': 1764.3725410000043,
      'ai.response.avgCompletionTokensPerSecond': 34.00642359010724,
      'ai.response.finishReason': 'stop',
      'ai.response.text':
        'The current weather in Lagos is partly cloudy with a temperature of 32°C, but it feels like 37.3°C. The humidity is at 64%, and there is a wind speed of 12.9 km/h with gusts up to 25.9 km/h.',
      'ai.response.id': 'chatcmpl-B2yPv3dQUxN1TCvefQOTJQWiZpYWM',
      'ai.response.model': 'gpt-4o-2024-08-06',
      'ai.response.timestamp': '2025-02-20T10:49:59.000Z',
      'ai.usage.promptTokens': 243,
      'ai.usage.completionTokens': 60,
      'gen_ai.response.finish_reasons': {
        values: [
          {
            stringValue: 'stop',
          },
        ],
      },
      'gen_ai.response.id': 'chatcmpl-B2yPv3dQUxN1TCvefQOTJQWiZpYWM',
      'gen_ai.response.model': 'gpt-4o-2024-08-06',
      'gen_ai.usage.input_tokens': 243,
      'gen_ai.usage.output_tokens': 60,
    },
    startTime: 1740048598580000,
    endTime: 1740048600345013,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: '4e67d76967945698',
    parentSpanId: '5024a200be6aa298',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'ai.toolCall',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'operation.name': 'ai.toolCall',
      'ai.operationId': 'ai.toolCall',
      'ai.toolCall.name': 'weatherTool',
      'ai.toolCall.id': 'call_2mcoQTp23zgzPbennak0ZSCB',
      'ai.toolCall.args': '{"location":"Lagos"}',
      componentName: 'Weather Agent',
      'ai.toolCall.result':
        '{"temperature":32,"feelsLike":37.3,"humidity":64,"windSpeed":12.9,"windGust":25.9,"conditions":"Partly cloudy","location":"Lagos"}',
    },
    startTime: 1740048597049000,
    endTime: 1740048598578040,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: '067991400ffa7117',
    parentSpanId: '5024a200be6aa298',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'ai.streamText.doStream',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [
      {
        attributes: [
          {
            key: 'ai.response.msToFirstChunk',
            value: {
              doubleValue: 1100.2712079999983,
            },
          },
        ],
        name: 'ai.stream.firstChunk',
        timeUnixNano: '1740048596944589167',
        droppedAttributesCount: 0,
      },
      {
        attributes: [],
        name: 'ai.stream.finish',
        timeUnixNano: '1740048598578680584',
        droppedAttributesCount: 0,
      },
    ],
    links: [],
    attributes: {
      'operation.name': 'ai.streamText.doStream',
      'ai.operationId': 'ai.streamText.doStream',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxRetries': 2,
      'ai.prompt.format': 'messages',
      'ai.prompt.messages':
        '[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:49:55.839Z"},{"role":"user","content":[{"type":"text","text":"what is the current weather in Lagos?"}]}]',
      'ai.prompt.tools': {
        values: [
          {
            stringValue:
              '{"type":"function","name":"weatherTool","description":"Get current weather for a location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"City name"}},"required":["location"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}',
          },
        ],
      },
      'ai.prompt.toolChoice': '{"type":"auto"}',
      'gen_ai.system': 'openai.chat',
      'gen_ai.request.model': 'gpt-4o',
      componentName: 'Weather Agent',
      'ai.response.msToFirstChunk': 1100.2712079999983,
      'ai.response.msToFinish': 2734.3826249999984,
      'ai.response.avgCompletionTokensPerSecond': 5.8514122543475455,
      'ai.response.finishReason': 'tool-calls',
      'ai.response.text': '',
      'ai.response.toolCalls':
        '[{"type":"tool-call","toolCallId":"call_2mcoQTp23zgzPbennak0ZSCB","toolName":"weatherTool","args":{"location":"Lagos"}}]',
      'ai.response.id': 'chatcmpl-B2yPsWydKUjDwlMVe5jhDyo1TCfiZ',
      'ai.response.model': 'gpt-4o-2024-08-06',
      'ai.response.timestamp': '2025-02-20T10:49:56.000Z',
      'ai.usage.promptTokens': 177,
      'ai.usage.completionTokens': 16,
      'gen_ai.response.finish_reasons': {
        values: [
          {
            stringValue: 'tool-calls',
          },
        ],
      },
      'gen_ai.response.id': 'chatcmpl-B2yPsWydKUjDwlMVe5jhDyo1TCfiZ',
      'gen_ai.response.model': 'gpt-4o-2024-08-06',
      'gen_ai.usage.input_tokens': 177,
      'gen_ai.usage.output_tokens': 16,
    },
    startTime: 1740048595844000,
    endTime: 1740048598578987,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: '5024a200be6aa298',
    parentSpanId: '25af5562b193b0f1',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'ai.streamText',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'operation.name': 'ai.streamText',
      'ai.operationId': 'ai.streamText',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxRetries': 2,
      'ai.prompt':
        '{"messages":[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:49:55.839Z"},{"role":"user","content":"what is the current weather in Lagos?"}]}',
      'ai.settings.maxSteps': 5,
      componentName: 'Weather Agent',
      'ai.response.finishReason': 'stop',
      'ai.response.text':
        'The current weather in Lagos is partly cloudy with a temperature of 32°C, but it feels like 37.3°C. The humidity is at 64%, and there is a wind speed of 12.9 km/h with gusts up to 25.9 km/h.',
      'ai.usage.promptTokens': 420,
      'ai.usage.completionTokens': 76,
    },
    startTime: 1740048595841000,
    endTime: 1740048600346460,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: '99e4e21bb728613e',
    parentSpanId: '25af5562b193b0f1',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'agent.__primitive',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.__primitive.argument.0':
        '{"messages":[{"role":"user","content":"what is the current weather in Lagos?"}],"runId":"05e6f5f1-3b2f-4fb4-831e-2f4759d27999"}',
      componentName: 'Weather Agent',
      'agent.__primitive.result': '{}',
    },
    startTime: 1740048595839000,
    endTime: 1740048595839045,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: 'e2556999f2199d4e',
    parentSpanId: '25af5562b193b0f1',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048595839000,
    endTime: 1740048595839015,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: '4e0f7ebc7f9fd587',
    parentSpanId: '25af5562b193b0f1',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048595839000,
    endTime: 1740048595839011,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: '25af5562b193b0f1',
    parentSpanId: 'c39e57144f815562',
    traceId: '5dc8dfa35447768c6ac212c6e844f7ad',
    name: 'agent.stream',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.stream.argument.0': '["what is the current weather in Lagos?"]',
      'agent.stream.argument.1': '{}',
      componentName: 'Weather Agent',
      'agent.stream.result':
        '{"warningsPromise":{"status":{"type":"pending"}},"usagePromise":{"status":{"type":"pending"}},"finishReasonPromise":{"status":{"type":"pending"}},"providerMetadataPromise":{"status":{"type":"pending"}},"textPromise":{"status":{"type":"pending"}},"reasoningPromise":{"status":{"type":"pending"}},"sourcesPromise":{"status":{"type":"pending"}},"toolCallsPromise":{"status":{"type":"pending"}},"toolResultsPromise":{"status":{"type":"pending"}},"requestPromise":{"status":{"type":"pending"}},"responsePromise":{"status":{"type":"pending"}},"stepsPromise":{"status":{"type":"pending"}},"baseStream":{}}',
    },
    startTime: 1740048595839000,
    endTime: 1740048595850157,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:50:00.842Z"',
  },
  {
    id: '749765273d7674c2',
    parentSpanId: '9b5952a0e9fe7ec3',
    traceId: '3412da8d61164b79a0cd67ebce33681f',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048585753000,
    endTime: 1740048585753048,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:50.756Z"',
  },
  {
    id: 'd8289d9013039022',
    parentSpanId: '5fb58e2adc0ac94c',
    traceId: '89c8279ac9819ea5214144c24137dd53',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048569863000,
    endTime: 1740048569863065,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:32.683Z"',
  },
  {
    id: 'ca0166a5aa5d2af0',
    parentSpanId: 'd77c2a6936a540f5',
    traceId: '89c8279ac9819ea5214144c24137dd53',
    name: 'ai.streamText.doStream',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [
      {
        attributes: [
          {
            key: 'ai.response.msToFirstChunk',
            value: {
              doubleValue: 1507.4084999999995,
            },
          },
        ],
        name: 'ai.stream.firstChunk',
        timeUnixNano: '1740048569196666709',
        droppedAttributesCount: 0,
      },
      {
        attributes: [],
        name: 'ai.stream.finish',
        timeUnixNano: '1740048569859597667',
        droppedAttributesCount: 0,
      },
    ],
    links: [],
    attributes: {
      'operation.name': 'ai.streamText.doStream',
      'ai.operationId': 'ai.streamText.doStream',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxRetries': 2,
      'ai.prompt.format': 'messages',
      'ai.prompt.messages':
        '[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:49:27.681Z"},{"role":"user","content":[{"type":"text","text":"What capabilities do you have?"}]}]',
      'ai.prompt.tools': {
        values: [
          {
            stringValue:
              '{"type":"function","name":"weatherTool","description":"Get current weather for a location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"City name"}},"required":["location"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}',
          },
        ],
      },
      'ai.prompt.toolChoice': '{"type":"auto"}',
      'gen_ai.system': 'openai.chat',
      'gen_ai.request.model': 'gpt-4o',
      componentName: 'Weather Agent',
      'ai.response.msToFirstChunk': 1507.4084999999995,
      'ai.response.msToFinish': 2170.4432500000003,
      'ai.response.avgCompletionTokensPerSecond': 18.890150663925443,
      'ai.response.finishReason': 'stop',
      'ai.response.text':
        "I can provide current weather information for specific locations, including details like temperature, humidity, wind conditions, and precipitation. If you need weather details, just let me know the location you're interested in!",
      'ai.response.id': 'chatcmpl-B2yPR0w1vfsTWzWiaA2MMCvf4Y1NY',
      'ai.response.model': 'gpt-4o-2024-08-06',
      'ai.response.timestamp': '2025-02-20T10:49:29.000Z',
      'ai.usage.promptTokens': 175,
      'ai.usage.completionTokens': 41,
      'gen_ai.response.finish_reasons': {
        values: [
          {
            stringValue: 'stop',
          },
        ],
      },
      'gen_ai.response.id': 'chatcmpl-B2yPR0w1vfsTWzWiaA2MMCvf4Y1NY',
      'gen_ai.response.model': 'gpt-4o-2024-08-06',
      'gen_ai.usage.input_tokens': 175,
      'gen_ai.usage.output_tokens': 41,
    },
    startTime: 1740048567689000,
    endTime: 1740048569860665,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:32.683Z"',
  },
  {
    id: 'd77c2a6936a540f5',
    parentSpanId: '5fb58e2adc0ac94c',
    traceId: '89c8279ac9819ea5214144c24137dd53',
    name: 'ai.streamText',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'operation.name': 'ai.streamText',
      'ai.operationId': 'ai.streamText',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxRetries': 2,
      'ai.prompt':
        '{"messages":[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:49:27.681Z"},{"role":"user","content":"What capabilities do you have?"}]}',
      'ai.settings.maxSteps': 5,
      componentName: 'Weather Agent',
      'ai.response.finishReason': 'stop',
      'ai.response.text':
        "I can provide current weather information for specific locations, including details like temperature, humidity, wind conditions, and precipitation. If you need weather details, just let me know the location you're interested in!",
      'ai.usage.promptTokens': 175,
      'ai.usage.completionTokens': 41,
    },
    startTime: 1740048567686000,
    endTime: 1740048569863436,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:32.683Z"',
  },
  {
    id: '0986ff1411cd0b88',
    parentSpanId: '5fb58e2adc0ac94c',
    traceId: '89c8279ac9819ea5214144c24137dd53',
    name: 'agent.__primitive',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.__primitive.argument.0':
        '{"messages":[{"role":"user","content":"What capabilities do you have?"}],"runId":"28b34213-ec53-434f-a171-b176397a05b8"}',
      componentName: 'Weather Agent',
      'agent.__primitive.result': '{}',
    },
    startTime: 1740048567681000,
    endTime: 1740048567681198,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:32.683Z"',
  },
  {
    id: '16de581d66caeac3',
    parentSpanId: '5fb58e2adc0ac94c',
    traceId: '89c8279ac9819ea5214144c24137dd53',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048567681000,
    endTime: 1740048567681066,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:32.683Z"',
  },
  {
    id: '2a4d7eb42a92bbed',
    parentSpanId: '5fb58e2adc0ac94c',
    traceId: '89c8279ac9819ea5214144c24137dd53',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048567681000,
    endTime: 1740048567681008,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:32.683Z"',
  },
  {
    id: '5fb58e2adc0ac94c',
    parentSpanId: '56289533129af177',
    traceId: '89c8279ac9819ea5214144c24137dd53',
    name: 'agent.stream',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.stream.argument.0': '["What capabilities do you have?"]',
      'agent.stream.argument.1': '{}',
      componentName: 'Weather Agent',
      'agent.stream.result':
        '{"warningsPromise":{"status":{"type":"pending"}},"usagePromise":{"status":{"type":"pending"}},"finishReasonPromise":{"status":{"type":"pending"}},"providerMetadataPromise":{"status":{"type":"pending"}},"textPromise":{"status":{"type":"pending"}},"reasoningPromise":{"status":{"type":"pending"}},"sourcesPromise":{"status":{"type":"pending"}},"toolCallsPromise":{"status":{"type":"pending"}},"toolResultsPromise":{"status":{"type":"pending"}},"requestPromise":{"status":{"type":"pending"}},"responsePromise":{"status":{"type":"pending"}},"stepsPromise":{"status":{"type":"pending"}},"baseStream":{}}',
    },
    startTime: 1740048567680000,
    endTime: 1740048567726989,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:32.683Z"',
  },
  {
    id: 'ac58ec04bb911937',
    parentSpanId: '92b7f70e7c263ea6',
    traceId: 'f6e4e63039edbb66ac9b84c736cc9147',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048564627000,
    endTime: 1740048564627021,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:24.851Z"',
  },
  {
    id: '67096aaf03b4c59d',
    parentSpanId: '60f7d88f0eb724e1',
    traceId: '6aff68094851d85849171ad7d97fb3b0',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048563347000,
    endTime: 1740048563347087,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:24.851Z"',
  },
  {
    id: 'a65ebd587bcf6bfb',
    parentSpanId: null,
    traceId: '4e62db27ad0a5d31fbe08a31e348756b',
    name: 'agent.__registerPrimitives',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.__registerPrimitives.argument.0': '[Not Serializable]',
      componentName: 'Weather Agent',
    },
    startTime: 1740048559847000,
    endTime: 1740048559847428,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:49:24.851Z"',
  },
  {
    id: '4f8d3885383ee23e',
    parentSpanId: 'b383c82795d0af9a',
    traceId: '6491e0850df195f913dbb6f573a988db',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048261926000,
    endTime: 1740048261926483,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:44:26.928Z"',
  },
  {
    id: '4b187e51eb7fe80c',
    parentSpanId: '89ca56104cff5a24',
    traceId: '36bcd1e77a6c64002d1fd6c3747d2846',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048078362000,
    endTime: 1740048078362143,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:41:23.364Z"',
  },
  {
    id: '56a84ed5d7772f39',
    parentSpanId: '1ab337a0338d3e0f',
    traceId: 'c77ac5dc8ab99753a39b373649a9f0c1',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048059711000,
    endTime: 1740048059711052,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:41:04.712Z"',
  },
  {
    id: 'bd80ecf55b2f2807',
    parentSpanId: '6bba8359ba6296f9',
    traceId: 'c21654a45a91fb6300c2ad30197bf486',
    name: 'ai.streamText.doStream',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 2,
      message:
        'Incorrect API key provided: sk-svcac******************************************************************************************************************************************XLgA. You can find your API key at https://platform.openai.com/account/api-keys.',
    },
    events: [
      {
        attributes: [
          {
            key: 'exception.type',
            value: {
              stringValue: 'AI_APICallError',
            },
          },
          {
            key: 'exception.message',
            value: {
              stringValue:
                'Incorrect API key provided: sk-svcac******************************************************************************************************************************************XLgA. You can find your API key at https://platform.openai.com/account/api-keys.',
            },
          },
          {
            key: 'exception.stacktrace',
            value: {
              stringValue:
                'AI_APICallError: Incorrect API key provided: sk-svcac******************************************************************************************************************************************XLgA. You can find your API key at https://platform.openai.com/account/api-keys.\n    at file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/@ai-sdk+provider-utils@2.1.9_zod@3.24.2/node_modules/@ai-sdk/provider-utils/dist/index.mjs:534:14\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async postToApi (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/@ai-sdk+provider-utils@2.1.9_zod@3.24.2/node_modules/@ai-sdk/provider-utils/dist/index.mjs:431:28)\n    at async OpenAIChatLanguageModel.doStream (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/@ai-sdk+openai@1.1.13_zod@3.24.2/node_modules/@ai-sdk/openai/dist/index.mjs:715:50)\n    at async fn (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:5122:25)\n    at async file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:467:22\n    at async _retryWithExponentialBackoff (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:268:12)\n    at async streamStep (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:5077:15)\n    at async fn (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:5413:9)\n    at async file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:467:22',
            },
          },
        ],
        name: 'exception',
        timeUnixNano: '1740048043496722583',
        droppedAttributesCount: 0,
      },
    ],
    links: [],
    attributes: {
      'operation.name': 'ai.streamText.doStream',
      'ai.operationId': 'ai.streamText.doStream',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxRetries': 2,
      'ai.prompt.format': 'messages',
      'ai.prompt.messages':
        '[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:40:42.370Z"},{"role":"user","content":[{"type":"text","text":"What capabilities do you have?"}]}]',
      'ai.prompt.tools': {
        values: [
          {
            stringValue:
              '{"type":"function","name":"weatherTool","description":"Get current weather for a location","parameters":{"type":"object","properties":{"location":{"type":"string","description":"City name"}},"required":["location"],"additionalProperties":false,"$schema":"http://json-schema.org/draft-07/schema#"}}',
          },
        ],
      },
      'ai.prompt.toolChoice': '{"type":"auto"}',
      'gen_ai.system': 'openai.chat',
      'gen_ai.request.model': 'gpt-4o',
      componentName: 'Weather Agent',
    },
    startTime: 1740048042380000,
    endTime: 1740048043496742,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:44.728Z"',
  },
  {
    id: '6bba8359ba6296f9',
    parentSpanId: '94ee07fef37f1782',
    traceId: 'c21654a45a91fb6300c2ad30197bf486',
    name: 'ai.streamText',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 2,
      message:
        'Incorrect API key provided: sk-svcac******************************************************************************************************************************************XLgA. You can find your API key at https://platform.openai.com/account/api-keys.',
    },
    events: [
      {
        attributes: [
          {
            key: 'exception.type',
            value: {
              stringValue: 'AI_APICallError',
            },
          },
          {
            key: 'exception.message',
            value: {
              stringValue:
                'Incorrect API key provided: sk-svcac******************************************************************************************************************************************XLgA. You can find your API key at https://platform.openai.com/account/api-keys.',
            },
          },
          {
            key: 'exception.stacktrace',
            value: {
              stringValue:
                'AI_APICallError: Incorrect API key provided: sk-svcac******************************************************************************************************************************************XLgA. You can find your API key at https://platform.openai.com/account/api-keys.\n    at file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/@ai-sdk+provider-utils@2.1.9_zod@3.24.2/node_modules/@ai-sdk/provider-utils/dist/index.mjs:534:14\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async postToApi (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/@ai-sdk+provider-utils@2.1.9_zod@3.24.2/node_modules/@ai-sdk/provider-utils/dist/index.mjs:431:28)\n    at async OpenAIChatLanguageModel.doStream (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/@ai-sdk+openai@1.1.13_zod@3.24.2/node_modules/@ai-sdk/openai/dist/index.mjs:715:50)\n    at async fn (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:5122:25)\n    at async file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:467:22\n    at async _retryWithExponentialBackoff (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:268:12)\n    at async streamStep (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:5077:15)\n    at async fn (file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:5413:9)\n    at async file:///Users/taofeeqoluderu/Workspaces/Kepler/mastra/node_modules/.pnpm/ai@4.1.42_react@19.0.0_zod@3.24.2/node_modules/ai/dist/index.mjs:467:22',
            },
          },
        ],
        name: 'exception',
        timeUnixNano: '1740048043497118042',
        droppedAttributesCount: 0,
      },
    ],
    links: [],
    attributes: {
      'operation.name': 'ai.streamText',
      'ai.operationId': 'ai.streamText',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxRetries': 2,
      'ai.prompt':
        '{"messages":[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:40:42.370Z"},{"role":"user","content":"What capabilities do you have?"}]}',
      'ai.settings.maxSteps': 5,
      componentName: 'Weather Agent',
    },
    startTime: 1740048042377000,
    endTime: 1740048043497124,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:44.728Z"',
  },
  {
    id: 'e9b7ed13e9c8798b',
    parentSpanId: '94ee07fef37f1782',
    traceId: 'c21654a45a91fb6300c2ad30197bf486',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048042370000,
    endTime: 1740048042370022,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:44.728Z"',
  },
  {
    id: '7cc50af9122c06d7',
    parentSpanId: '94ee07fef37f1782',
    traceId: 'c21654a45a91fb6300c2ad30197bf486',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048042370000,
    endTime: 1740048042370013,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:44.728Z"',
  },
  {
    id: 'a5b7e984c5965926',
    parentSpanId: '94ee07fef37f1782',
    traceId: 'c21654a45a91fb6300c2ad30197bf486',
    name: 'agent.__primitive',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.__primitive.argument.0':
        '{"messages":[{"role":"user","content":"What capabilities do you have?"}],"runId":"67b0fa32-aa18-4bb9-ba45-c14bf1b46e65"}',
      componentName: 'Weather Agent',
      'agent.__primitive.result': '{}',
    },
    startTime: 1740048042369000,
    endTime: 1740048042369230,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:44.728Z"',
  },
  {
    id: '94ee07fef37f1782',
    parentSpanId: 'b94a5381297f1006',
    traceId: 'c21654a45a91fb6300c2ad30197bf486',
    name: 'agent.stream',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.stream.argument.0': '["What capabilities do you have?"]',
      'agent.stream.argument.1': '{}',
      componentName: 'Weather Agent',
      'agent.stream.result':
        '{"warningsPromise":{"status":{"type":"pending"}},"usagePromise":{"status":{"type":"pending"}},"finishReasonPromise":{"status":{"type":"pending"}},"providerMetadataPromise":{"status":{"type":"pending"}},"textPromise":{"status":{"type":"pending"}},"reasoningPromise":{"status":{"type":"pending"}},"sourcesPromise":{"status":{"type":"pending"}},"toolCallsPromise":{"status":{"type":"pending"}},"toolResultsPromise":{"status":{"type":"pending"}},"requestPromise":{"status":{"type":"pending"}},"responsePromise":{"status":{"type":"pending"}},"stepsPromise":{"status":{"type":"pending"}},"baseStream":{}}',
    },
    startTime: 1740048042369000,
    endTime: 1740048042408146,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:44.728Z"',
  },
  {
    id: 'e070987a8cfc573a',
    parentSpanId: 'cfc7fbd9b7ae4648',
    traceId: 'fb208306cd9c5702992ce95fb1c493ca',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048040778000,
    endTime: 1740048040778007,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:44.728Z"',
  },
  {
    id: '3ccb2720c36b55eb',
    parentSpanId: '32b677d86b73bb13',
    traceId: 'c904a521955aa86ee80a0568cad3776f',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'Weather Agent',
    },
    startTime: 1740048039722000,
    endTime: 1740048039722103,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:44.728Z"',
  },
  {
    id: 'bc83fd2c129979f0',
    parentSpanId: null,
    traceId: 'fd1bdaa6b11c9abdd7d0bf375fb22072',
    name: 'agent.__registerPrimitives',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.__registerPrimitives.argument.0': '[Not Serializable]',
      componentName: 'Weather Agent',
    },
    startTime: 1740048031871000,
    endTime: 1740048031871424,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:40:36.878Z"',
  },
];

export const workflow_traces_mock_data = [
  {
    id: '3d3b6f9be3053669',
    parentSpanId: '56e0a52e9ac411c3',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
    },
    startTime: 1740048702972000,
    endTime: 1740048702972059,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:47.972Z"',
  },
  {
    id: '7c6b160574faa217',
    parentSpanId: '56e0a52e9ac411c3',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
    },
    startTime: 1740048698348000,
    endTime: 1740048698348037,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '6391a8d6d45f4186',
    parentSpanId: '56e0a52e9ac411c3',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
    },
    startTime: 1740048698348000,
    endTime: 1740048698348007,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '7df8ffea0333fdc8',
    parentSpanId: '56e0a52e9ac411c3',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.__primitive',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.__primitive.argument.0':
        '{"messages":[{"role":"user","content":"Based on the following weather forecast for Lagos, suggest appropriate activities:\\n      [\\n  {\\n    \\"date\\": \\"2025-02-20\\",\\n    \\"maxTemp\\": 33,\\n    \\"minTemp\\": 25,\\n    \\"precipitationChance\\": 20,\\n    \\"condition\\": \\"Partly Cloudy\\",\\n    \\"location\\": \\"Lagos\\"\\n  }\\n]\\n      "}],"runId":"8afa419a-33c0-40e3-bde6-558050506382"}',
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
      'agent.__primitive.result': '{}',
    },
    startTime: 1740048698347000,
    endTime: 1740048698347023,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '56e0a52e9ac411c3',
    parentSpanId: 'a685dd0567604952',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.stream',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.stream.argument.0':
        '[{"role":"user","content":"Based on the following weather forecast for Lagos, suggest appropriate activities:\\n      [\\n  {\\n    \\"date\\": \\"2025-02-20\\",\\n    \\"maxTemp\\": 33,\\n    \\"minTemp\\": 25,\\n    \\"precipitationChance\\": 20,\\n    \\"condition\\": \\"Partly Cloudy\\",\\n    \\"location\\": \\"Lagos\\"\\n  }\\n]\\n      "}]',
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
      'agent.stream.result':
        '{"warningsPromise":{"status":{"type":"pending"}},"usagePromise":{"status":{"type":"pending"}},"finishReasonPromise":{"status":{"type":"pending"}},"providerMetadataPromise":{"status":{"type":"pending"}},"textPromise":{"status":{"type":"pending"}},"reasoningPromise":{"status":{"type":"pending"}},"sourcesPromise":{"status":{"type":"pending"}},"toolCallsPromise":{"status":{"type":"pending"}},"toolResultsPromise":{"status":{"type":"pending"}},"requestPromise":{"status":{"type":"pending"}},"responsePromise":{"status":{"type":"pending"}},"stepsPromise":{"status":{"type":"pending"}},"baseStream":{}}',
    },
    startTime: 1740048698347000,
    endTime: 1740048698350535,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: 'a685dd0567604952',
    parentSpanId: '9cb6b0bb2d22e84b',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'workflow.weather-workflow.action.plan-activities',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
      'workflow.weather-workflow.action.plan-activities.argument.0': '[Not Serializable]',
      'workflow.weather-workflow.action.plan-activities.result': '{"activities":{}}',
    },
    startTime: 1740048698347000,
    endTime: 1740048702973207,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:47.972Z"',
  },
  {
    id: '4ca0cbe3688842e0',
    parentSpanId: '9cb6b0bb2d22e84b',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'workflow.weather-workflow.step.plan-activities',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
      'workflow.weather-workflow.step.plan-activities.argument.0': '[Not Serializable]',
      'workflow.weather-workflow.step.plan-activities.result': '{"activities":{}}',
    },
    startTime: 1740048698346000,
    endTime: 1740048702972475,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:47.972Z"',
  },
  {
    id: 'e9359d3d546cbbe5',
    parentSpanId: '72119ef07045c5a7',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
    },
    startTime: 1740048698343000,
    endTime: 1740048698343044,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '34706b53f7832420',
    parentSpanId: '4e40d139d3faec80',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'ai.generateObject.doGenerate',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'operation.name': 'ai.generateObject.doGenerate',
      'ai.operationId': 'ai.generateObject.doGenerate',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxSteps': 5,
      'ai.settings.toolChoice': 'auto',
      'ai.settings.maxRetries': 2,
      'ai.prompt.format': 'messages',
      'ai.prompt.messages':
        '[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:51:35.909Z"},{"role":"user","content":[{"type":"text","text":"lagos"}]}]',
      'ai.settings.mode': 'tool',
      'gen_ai.system': 'openai.chat',
      'gen_ai.request.model': 'gpt-4o',
      componentName: 'weather-workflow',
      'ai.response.finishReason': 'stop',
      'ai.response.object':
        '{"elements":[{"date":"2025-02-20","maxTemp":33,"minTemp":25,"precipitationChance":20,"condition":"Partly Cloudy","location":"Lagos"}]}',
      'ai.response.id': 'chatcmpl-B2yRU8T8Wax6ZX9NAkcSsxna6sG3O',
      'ai.response.model': 'gpt-4o-2024-08-06',
      'ai.response.timestamp': '2025-02-20T10:51:36.000Z',
      'ai.usage.promptTokens': 201,
      'ai.usage.completionTokens': 44,
      'gen_ai.response.finish_reasons': {
        values: [
          {
            stringValue: 'stop',
          },
        ],
      },
      'gen_ai.response.id': 'chatcmpl-B2yRU8T8Wax6ZX9NAkcSsxna6sG3O',
      'gen_ai.response.model': 'gpt-4o-2024-08-06',
      'gen_ai.usage.input_tokens': 201,
      'gen_ai.usage.output_tokens': 44,
    },
    startTime: 1740048695911000,
    endTime: 1740048698341881,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '4e40d139d3faec80',
    parentSpanId: '72119ef07045c5a7',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'ai.generateObject',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'operation.name': 'ai.generateObject',
      'ai.operationId': 'ai.generateObject',
      'ai.model.provider': 'openai.chat',
      'ai.model.id': 'gpt-4o',
      'ai.settings.maxSteps': 5,
      'ai.settings.toolChoice': 'auto',
      'ai.settings.maxRetries': 2,
      'ai.prompt':
        '{"messages":[{"role":"system","content":"You are a helpful weather assistant that provides accurate weather information.\\n\\nYour primary function is to help users get weather details for specific locations. When responding:\\n- Always ask for a location if none is provided\\n- If giving a location with multiple parts (e.g. \\"New York, NY\\"), use the most relevant part (e.g. \\"New York\\")\\n- Include relevant details like humidity, wind conditions, and precipitation\\n- Keep responses concise but informative\\n\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:51:35.909Z"},{"role":"user","content":"lagos"}]}',
      'ai.schema':
        '{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"elements":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"maxTemp":{"type":"number"},"minTemp":{"type":"number"},"precipitationChance":{"type":"number"},"condition":{"type":"string"},"location":{"type":"string"}},"required":["date","maxTemp","minTemp","precipitationChance","condition","location"],"additionalProperties":false}}},"required":["elements"],"additionalProperties":false}',
      'ai.settings.output': 'enum',
      componentName: 'weather-workflow',
      'ai.response.finishReason': 'stop',
      'ai.response.object':
        '[{"date":"2025-02-20","maxTemp":33,"minTemp":25,"precipitationChance":20,"condition":"Partly Cloudy","location":"Lagos"}]',
      'ai.usage.promptTokens': 201,
      'ai.usage.completionTokens': 44,
    },
    startTime: 1740048695911000,
    endTime: 1740048698343629,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: 'ecd95e4b2e3c7e48',
    parentSpanId: '72119ef07045c5a7',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
    },
    startTime: 1740048695909000,
    endTime: 1740048695909014,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '0f51dd9bdd9e37f9',
    parentSpanId: '72119ef07045c5a7',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.getMemory',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
    },
    startTime: 1740048695909000,
    endTime: 1740048695909009,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '2fefd25be6d5df72',
    parentSpanId: '72119ef07045c5a7',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.__primitive',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.__primitive.argument.0':
        '{"messages":[{"role":"user","content":"lagos"}],"runId":"069bcf2b-856b-4587-a1e6-eb9fbfbfb6a8"}',
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
      'agent.__primitive.result': '{}',
    },
    startTime: 1740048695908000,
    endTime: 1740048695908036,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '72119ef07045c5a7',
    parentSpanId: 'dbf6f9a4d190d72c',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'agent.generate',
    scope: 'default-tracer',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      'agent.generate.argument.0': '"lagos"',
      'agent.generate.argument.1':
        '{"output":{"_def":{"type":{"_def":{"unknownKeys":"strip","catchall":{"_def":{"typeName":"ZodNever"},"~standard":{"version":1,"vendor":"zod"}},"typeName":"ZodObject"},"~standard":{"version":1,"vendor":"zod"},"_cached":null},"minLength":null,"maxLength":null,"exactLength":null,"typeName":"ZodArray"},"~standard":{"version":1,"vendor":"zod"}}}',
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
      'agent.generate.result':
        '{"object":[{"date":"2025-02-20","maxTemp":33,"minTemp":25,"precipitationChance":20,"condition":"Partly Cloudy","location":"Lagos"}],"finishReason":"stop","usage":{"promptTokens":201,"completionTokens":44,"totalTokens":245},"warnings":[],"providerMetadata":{"openai":{"reasoningTokens":0,"acceptedPredictionTokens":0,"rejectedPredictionTokens":0,"cachedPromptTokens":0}},"experimental_providerMetadata":{"openai":{"reasoningTokens":0,"acceptedPredictionTokens":0,"rejectedPredictionTokens":0,"cachedPromptTokens":0}},"response":{"id":"chatcmpl-B2yRU8T8Wax6ZX9NAkcSsxna6sG3O","timestamp":"2025-02-20T10:51:36.000Z","modelId":"gpt-4o-2024-08-06","headers":{"access-control-expose-headers":"X-Request-ID","alt-svc":"h3=\\":443\\"; ma=86400","cf-cache-status":"DYNAMIC","cf-ray":"914df141edfb534d-LOS","connection":"keep-alive","content-encoding":"br","content-type":"application/json","date":"Thu, 20 Feb 2025 10:51:38 GMT","openai-organization":"user-ph7zithhfjmhunvumml7zjph","openai-processing-ms":"1927","openai-version":"2020-10-01","server":"cloudflare","set-cookie":"_cfuvid=NnqYJPFdL32DRsdE4HVpVu.LTXyiVBtnFEWGU9eTZVI-1740048698779-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None","strict-transport-security":"max-age=31536000; includeSubDomains; preload","transfer-encoding":"chunked","x-content-type-options":"nosniff","x-ratelimit-limit-requests":"500","x-ratelimit-limit-tokens":"30000","x-ratelimit-remaining-requests":"499","x-ratelimit-remaining-tokens":"29843","x-ratelimit-reset-requests":"120ms","x-ratelimit-reset-tokens":"314ms","x-request-id":"req_560483e490783bf0adbbbc839348a26d"}},"request":{"body":"{\\"model\\":\\"gpt-4o\\",\\"temperature\\":0,\\"messages\\":[{\\"role\\":\\"system\\",\\"content\\":\\"You are a helpful weather assistant that provides accurate weather information.\\\\n\\\\nYour primary function is to help users get weather details for specific locations. When responding:\\\\n- Always ask for a location if none is provided\\\\n- If giving a location with multiple parts (e.g. \\\\\\"New York, NY\\\\\\"), use the most relevant part (e.g. \\\\\\"New York\\\\\\")\\\\n- Include relevant details like humidity, wind conditions, and precipitation\\\\n- Keep responses concise but informative\\\\n\\\\nUse the weatherTool to fetch current weather data.. Today\'s date is 2025-02-20T10:51:35.909Z\\"},{\\"role\\":\\"user\\",\\"content\\":\\"lagos\\"}],\\"tool_choice\\":{\\"type\\":\\"function\\",\\"function\\":{\\"name\\":\\"json\\"}},\\"tools\\":[{\\"type\\":\\"function\\",\\"function\\":{\\"name\\":\\"json\\",\\"description\\":\\"Respond with a JSON object.\\",\\"parameters\\":{\\"$schema\\":\\"http://json-schema.org/draft-07/schema#\\",\\"type\\":\\"object\\",\\"properties\\":{\\"elements\\":{\\"type\\":\\"array\\",\\"items\\":{\\"type\\":\\"object\\",\\"properties\\":{\\"date\\":{\\"type\\":\\"string\\"},\\"maxTemp\\":{\\"type\\":\\"number\\"},\\"minTemp\\":{\\"type\\":\\"number\\"},\\"precipitationChance\\":{\\"type\\":\\"number\\"},\\"condition\\":{\\"type\\":\\"string\\"},\\"location\\":{\\"type\\":\\"string\\"}},\\"required\\":[\\"date\\",\\"maxTemp\\",\\"minTemp\\",\\"precipitationChance\\",\\"condition\\",\\"location\\"],\\"additionalProperties\\":false}}},\\"required\\":[\\"elements\\"],\\"additionalProperties\\":false}}}]}"}}',
    },
    startTime: 1740048695908000,
    endTime: 1740048698343187,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: 'dbf6f9a4d190d72c',
    parentSpanId: '9cb6b0bb2d22e84b',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'workflow.weather-workflow.action.fetch-weather',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
      'workflow.weather-workflow.action.fetch-weather.argument.0': '[Not Serializable]',
      'workflow.weather-workflow.action.fetch-weather.result':
        '[{"date":"2025-02-20","maxTemp":33,"minTemp":25,"precipitationChance":20,"condition":"Partly Cloudy","location":"Lagos"}]',
    },
    startTime: 1740048695908000,
    endTime: 1740048698343593,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '9598fc489c2a5649',
    parentSpanId: '9cb6b0bb2d22e84b',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'workflow.weather-workflow.step.fetch-weather',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
      'workflow.weather-workflow.step.fetch-weather.argument.0': '[Not Serializable]',
      'workflow.weather-workflow.step.fetch-weather.result':
        '[{"date":"2025-02-20","maxTemp":33,"minTemp":25,"precipitationChance":20,"condition":"Partly Cloudy","location":"Lagos"}]',
    },
    startTime: 1740048695908000,
    endTime: 1740048698343984,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:40.897Z"',
  },
  {
    id: '9cb6b0bb2d22e84b',
    parentSpanId: 'eeed47c5109acff0',
    traceId: 'c6bc4471a04b44ec8da93fd60825584b',
    name: 'workflow.weather-workflow.execute',
    scope: 'default-service',
    kind: 1,
    status: {
      code: 0,
    },
    events: [],
    links: [],
    attributes: {
      componentName: 'weather-workflow',
      runId: '10f3869b-3423-49d8-892b-9aa86431455c',
    },
    startTime: 1740048695899000,
    endTime: 1740048702980054,
    other: {
      droppedAttributesCount: 0,
      droppedEventsCount: 0,
      droppedLinksCount: 0,
    },
    createdAt: '"2025-02-20T10:51:47.972Z"',
  },
];
